<?php

class Users2_model extends CI_Model {

    //put your code here
    public $table = "";
    function __construct() {
        parent::__construct();
        $this->table = MYSQL_TABLE_PREFLIX.TABLE_USER2_ACCOUNTS_INFORMATION;
    }

    function GetAddressArray($UserEmail){
        $query = $this->db->get_where(MYSQL_TABLE_PREFLIX.TABLE_USER2_CONTACT_INFORMATION, array('RelUserEmail' => $UserEmail));
        return $query->result_array();
    }
    
    function GetInformation($data){
        $query = $this->db->get_where($this->table, $data);
        return $query->result_array();
    }

}
